package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件对象 app_attachment
 * 
 * @author ruoyi
 * @date 2023-02-28
 */
public class AppAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 源文件名称 */
    @Excel(name = "源文件名称")
    private String originalName;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String address;

    /** 格式 */
    @Excel(name = "格式")
    private String fileExt;

    /** 大小 */
    @Excel(name = "大小")
    private String fileSize;

    /** 文件MD5值 */
    @Excel(name = "文件MD5值")
    private String fileMd5;

    /** 文件宽度 */
    @Excel(name = "文件宽度")
    private Long fileWidth;

    /** 文件高度 */
    @Excel(name = "文件高度")
    private Long fileHeight;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOriginalName(String originalName) 
    {
        this.originalName = originalName;
    }

    public String getOriginalName() 
    {
        return originalName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setFileExt(String fileExt) 
    {
        this.fileExt = fileExt;
    }

    public String getFileExt() 
    {
        return fileExt;
    }
    public void setFileSize(String fileSize) 
    {
        this.fileSize = fileSize;
    }

    public String getFileSize() 
    {
        return fileSize;
    }
    public void setFileMd5(String fileMd5) 
    {
        this.fileMd5 = fileMd5;
    }

    public String getFileMd5() 
    {
        return fileMd5;
    }
    public void setFileWidth(Long fileWidth) 
    {
        this.fileWidth = fileWidth;
    }

    public Long getFileWidth() 
    {
        return fileWidth;
    }
    public void setFileHeight(Long fileHeight) 
    {
        this.fileHeight = fileHeight;
    }

    public Long getFileHeight() 
    {
        return fileHeight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("originalName", getOriginalName())
            .append("name", getName())
            .append("address", getAddress())
            .append("fileExt", getFileExt())
            .append("fileSize", getFileSize())
            .append("fileMd5", getFileMd5())
            .append("fileWidth", getFileWidth())
            .append("fileHeight", getFileHeight())
            .toString();
    }
}
